package com.mengmablog.blog.dao;

import com.mengmablog.blog.entity.Comments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comments record);

    int insertSelective(Comments record);

    Comments selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKeyWithBLOBs(Comments record);

    int updateByPrimaryKey(Comments record);

    List<Comments> findByArticleId(String articleId);

    int insertByComment(@Param("articleId") Integer articleId, @Param("pId") Integer pId, @Param("content") String content, @Param("name") String name, @Param("website") String website, @Param("email") String email);

    void updateByCommentIdAssess(@Param("commentId") String commentId, @Param("assess") String assess);

    List<Comments> findByAllComment();

}